import { memo, useEffect, useState } from "react";
import http from "../../utils/http";

const TestPage = memo(()=>{
    const [musicList,setMusicList] = useState([])
    function getMusic(){
        http.get('http://m.kugou.com/rank/list&json=true',{}).then(res=>{
            console.log(res);
            
        })
    }

    useEffect(()=>{
        getMusic()
    },[])
    return (
        <>
            <div className="test_box" style={{color:'#000'}}>
                测试
                {/* <Recorder></Recorder> */}
            </div>
        </>
    )
})

export default TestPage